#ifndef TOTALDATAPROCESS_H
#define TOTALDATAPROCESS_H
#include "projectdb.h"
class TotalDataProcess
{
public:
    TotalDataProcess();

public:
    bool ProcessData(double);
    void init();
    void setBiJiaoCiShu(int value){m_iBiJiaoCiShu=value;}
    void setTestPointOver(bool value){testPointOver=value;}
    void setTestType(QString,QString);
    void setCyFlag(bool value){m_CyFlag=value;}
    bool getTestPointOver(){return testPointOver;}
    bool getTestOver(){return testOver;}

private:
    int m_iBiJiaoCiShu;
    int m_iTestTimes;

    double m_dblBc[10];
    double m_dblJc[10];
    QString m_sTestType;
    QString m_sJD;
    int nowBfd;
    float nowtestBfderror;
    int testBfdX[5];
    float testBfderrorX[5];

    bool testPointOver;     //单点测量完成
    bool testOver;          //所有点测量完成
    bool m_CyFlag;

    ProjectDB *myDB;
    QSqlQuery tabTestData;
    QSqlQuery tabErrorPoint;

    void getTestInfo();
    double SZLB(int num,double*D_ADD);//num组double类型的数，去掉一个最大一个最小，再取平均

};

#endif // TOTALDATAPROCESS_H
